/*
 * bomb.h
 *
 *  Created on: 26 f�vr. 2013
 *      Author: Yo
 */

#ifndef BOMB_H_
#define BOMB_H_

#include <stdio.h>
#include <stdlib.h>
#include "SDL.h"
#include "SDL_image.h"
#include "../include/constant.h"


enum bomb_state {
	BEGIN, INT1, INT2, END
};

typedef struct s_bomb * t_bomb;

//drop a new bomb
t_bomb new_bomb(t_player player, int init_time);

extern int bomb_get_x(t_bomb bomb);
extern int bomb_get_y(t_bomb bomb);
extern int update_bomb_status (t_bomb bomb,t_game game);

void display_bomb(t_bomb bomb, SDL_Surface *screen);


extern int bomb_get_init_time (t_bomb bomb);

extern int bomb_get_bomb_range(t_bomb bomb);

extern void new_bonus(t_map map,int x,int y);

extern void bomb_explosion (t_bomb bomb,t_game game, SDL_Surface *screen);

#endif /* BOMB_H_ */
